/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.star.common;

/**
 *
 * @author Administrator
 */
public class NewsCateData {
    String id;
    String name;
    String code;
    String id_cate_pa;
    long created;
    
    
    public NewsCateData() {
        name = "";     
        code = "";
        created = 0;
        id_cate_pa = "";
    }
    
    public NewsCateData(String id, String name, long created, String id_cate_pa, String code) {
        this.id = id;
        this.name = name;        
        this.created = created;
        this.id_cate_pa = id_cate_pa;
        this.code = code;
    }

    //contructor for add new
    public NewsCateData(String name, String id_cate_pa, String code) {        
        this.name = name;        
        this.id_cate_pa = id_cate_pa;
        this.code = code;
        this.created = System.currentTimeMillis()/1000L;
    }
    
    //contructor for edit
    public NewsCateData(String id, String name, String id_cate_pa, String code) { 
        this.id = id;
        this.name = name;        
        this.id_cate_pa = id_cate_pa;
        this.code = code;        
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getCreated() {
        return created;
    }

    public void setCreated(long created) {
        this.created = created;
    }

    public String getId_cate_pa() {
        return id_cate_pa;
    }

    public void setId_cate_pa(String id_cate_pa) {
        this.id_cate_pa = id_cate_pa;
    }
    
    
}
